package cn.shop.front.entity.req;

import cn.shop.utils.enums.ProcessState;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import java.time.LocalDate;

/**
 * @author : 李一涵
 * @date : Created in 2022-2-25 17:35
 * @description :
 */
@Data
@ToString
@EqualsAndHashCode
public class WithdrawQueryReq {

    @Min(value = 1, message = "请输入每页记录数")
    private int size;
    @Min(value = 1, message = "请输入页数")
    private int current;
    private ProcessState state;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;

}
